package cn.itcast.bos.service.take_delivery;

import java.util.Date;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.itcast.bos.domain.take_delivery.PageBean;
import cn.itcast.bos.domain.take_delivery.Promotion;

public interface PromotionService {

	void save(Promotion model);

	Page<Promotion> queryPage(Pageable pageable);
	
	@Path("/queryPromotion")
	@GET
	@Produces({"application/xml","application/json"})
	public PageBean<Promotion> queryPromotion(@QueryParam("page") Integer page,@QueryParam("rows") Integer rows);
	
	
	@Path("/queryPromotionById")
	@GET
	@Produces({"application/xml","application/json"})
	public Promotion queryPromotionById(@QueryParam("id") Integer id);

	void update();
}
